<?php

namespace app\api\controller;

use app\api\model\Guide as GuideModel;
use app\BaseController;

class Guide extends BaseController
{
    /* 获取 */
    public function getList()
    {
        $cid = input('cid', 0, 'intval');
        $tid = input('tid', 0, 'intval');
        $data = GuideModel::order('sort asc')->where(['cid' => $cid, 'tid' => $tid, 'status' => 1])->select();
        return show(config('status.success'), '获取指南列表', $data);
    }
}
